<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>资讯管理</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
.vb_wid {width:100%; margin: 0 auto; border-top:1px #FDB18D solid; background:#F5F5F5; color:#FE6500; text-indent:20px; line-height:25px; font-size:12px;}
.fb_search {width:100%; margin:0 auto; margin-top:20px; border:1px #FFCD7F solid;}
.fb_search h1 {background:#FFEFBB; margin:0px; padding:0px; line-height:28px; text-indent:10px; font-size:14px;}
.fb_s_a1 {margin:5px; font-size:14px;}
.fb_s_a2 {font-size:12px; line-height:22px; color:#999; margin-left:5px;}
.fb_ddd {width:100%; margin:0 auto; margin-top:10px; border-top:3px #FFCC00 solid; background:url(images/pen.gif) no-repeat 5px 3px; height:40px; text-indent:50px; line-height:40px; color:#464646; font-size:12px;}
.fb_nr {width:100%; margin:0 auto; margin-top:10px; line-height:22px; font-size:12px; color:#464646}
.fb_nr span {color:#FF0000;}
.fb_nr select {color:464646; font-size:12px;}
.fb_nr Div {margin-top:10px; height:30px;}
.fb_nr Div input {font-size:12px; line-height:18px;}
.inputtttt {border:1px #DEA303 solid; height:20px; color:#464646; font-size:12px; background:url(images/bottom_bg.jpg) repeat-x left top;}
.lb {background:#FFCD7F; color:#464646; font-weight:bold; text-align:center; height:30px; line-height:30px;}
.lb1 {border-bottom:1px #000000 dashed; height:28px;}
.lb1 td {border-bottom:1px #ccc dashed; background:#eefefe}
.fy1 {width:90%; margin:0 auto; margin-top:8px; background:#F8F8F8; font-size:12px; height:30px; line-height:28px; text-indent:10px;}
.fy1 span {color:#FF0000; font-weight:bold;}
.fy1 a {color:#464646; text-decoration:none;}
.fy1 a:hover {color:#FF0000; text-decoration:underline;}
</style>
	<script  type="text/javascript"  language="javascript">
   
  var pageObj;
   function topage(pageObj)
   {
      
     var formObj=document.getElementById('searchForm123');
     var page=document.getElementById('toPage').value
     
      var toPageLink=document.getElementById('toPageLinkpage').value;

     
     
      if(page!=null&&page!='')
     {

       if(!isNotNumReg(page))
       {
         var link=toPageLink+'&page='+page;
         window.location=encodeURI(link);
       }
        else
       {
         alert('您输入的页码只能是数字!');
         return false;
       }
     }
     else
     {
        alert("页码不能为空!");
      }
      
      
   }
   
   
   				function isNotNumReg(s)
			{
				var temp="0123456789";
				for( j=0;j<s.length; j++ ) 
				{	
					var ch=s.charAt(j);
					if(temp.indexOf(ch) == -1)
					{
						return true;
					}
				}
				return false;
			}
</script>
	<script language="JavaScript">
<!--//

		
function selectAll(choice) {
   if(document.forms['theForm1'].checkboxparam.length!=null)
   {
	   for (var i=0;i<document.forms['theForm1'].checkboxparam.length;i++) 
	   {
			var e=document.forms['theForm1'].checkboxparam[i];
			if(choice==1)e.checked=true;
			if(choice==2)e.checked=(e.checked?false:true);
			if(choice==3)e.checked=false;
		}
   }
   
   //单个的处理
   else
   {
     var e=document.forms['theForm1'].checkboxparam;
     if(choice==1)e.checked=true;
			if(choice==2)e.checked=(e.checked?false:true);
			if(choice==3)e.checked=false;
     
   }
	
}

function  checkboxIsSelected(){

   var flag = 0;
   if(document.forms['theForm1'].checkboxparam.length!=null)
   {
        for (var i=0;i<document.forms['theForm1'].checkboxparam.length;i++) 
		   {
		        var e=document.forms['theForm1'].checkboxparam[i];
		        if(e.checked){
					flag = 1;
				}
		   }
		   if(flag==1)
		   {
		     return true;
		   }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
   
   //只选择了一项
   else if(document.forms['theForm1'].checkboxparam!=null)
   {
       var e=document.forms['theForm1'].checkboxparam;
        if(e.checked)
        {
					flag = 1;
	    }
	    
	      if(flag==1)
		   {
		      return true
           }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
   		        window.alert('至少选择一项!');
		        return false;
}
//-->
</script>
<script type='text/javascript' src='/dwr/interface/homeSiteDWRServ.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='/dwr/util.js'></script>
<script type="text/javascript">
          function getChild1(obj,obj2){
		      getChildren1(obj.value,obj2); 
	 	}
	 	var typeId;
	 	var parId;
		function getChildren1(parId,typeId){
		
             //通过类型id和父类id获取Map列表
			homeSiteDWRServ.loadSecondHomeSiteNewsClassByType(typeId,parId,getSecondProList);
		}
	 
	    function getSecondProList(data){
	    
	  	  var second = document.getElementById("homeSiteNewsClassSid");
	      DWRUtil.removeAllOptions(second);
	      DWRUtil.addOptions(second, {'-1':'请选择'}); 
	      //DWRUtil.addOptions(second, data,'id','names'); 
	      DWRUtil.addOptions(second, data);
	    }
 
 	  //通过二级分类id,获取三级分类列表  第一个参数值,第二个参数类型值
 	  function loadThirdSelectList(obj,obj2)
 	  {
 	      var parId = obj.value;
 	      var typeId = obj2;
 	      homeSiteDWRServ.loadSecondHomeSiteNewsClassByType(typeId,parId,setThirdSelectList);
 	      
 	  }
 	  
 	  //设置三级分类
 	  var data;
 	  function setThirdSelectList(data)
 	  {
 	      var second = document.getElementById("homeSiteNewsClassThid");
	      DWRUtil.removeAllOptions(second);
	      DWRUtil.addOptions(second, {'-1':'请选择'});
	      DWRUtil.addOptions(second, data);
 	  }
 	  
 	  
 		function getChild2(obj2){
 		var obj_City = document.getElementById("homeSiteNewsClassSid");
    		
    		var scLabel="";
    		var scList=obj_City.options;
    		for(var j=0;j<scList.length;j++)
    		{
    		    if(scList[j].selected )
    		    {
    		    
    		       scLabel=scList[j].text;
    		    }
    		}
    		 var obj_County = document.getElementById("homeSiteNewsClassThid");

    		var city_Index = obj_City.selectedIndex;
    		var city_Value = obj_City.options[city_Index].value;
    		if(city_Value != "" && city_Value != null&&city_Value!=-1){
    		    getChildren2(city_Value,obj2);
    		}else{
    			DWRUtil.removeAllOptions(obj_County);
				DWRUtil.addOptions(obj_County,{'-1':'请选择'});
    		}
	 	}
		  function getChildren2(parId,obj2){
			homeSiteDWRServ.loadNewsClassList(parId,obj2,getThirdProList);
		 }
	     function getThirdProList(data){
		  	  var third = document.getElementById("homeSiteNewsClassThid");
		      DWRUtil.removeAllOptions(third);
		      DWRUtil.addOptions(third, {'-1':'请选择'}); 
		      DWRUtil.addOptions(third, data,'id','names'); 
	     }
</script>
<script type="text/javascript">
 function search(){
 
 var url='/admin/homeSite/homeSiteNews.do?action=list';

 //查询类型
 var titleStr = document.getElementById("titleStr").value;
 //查询关键字
 var title= document.getElementById("title").value;
  var param2='';

  //通过标题查询
 if(titleStr==1){
  param2='&title='+title;
 }

 //通过内容查询
 if(titleStr==2){
   param2='&content='+title;
 }
 if(titleStr==3){
   param2='&createDatetimeStr='+title;
 
 }
 var homeSiteNewsClassBid= document.getElementById("homeSiteNewsClassBid").value;
 var homeSiteNewsClassSid= document.getElementById("homeSiteNewsClassSid").value;
 var homeSiteNewsClassThid= document.getElementById("homeSiteNewsClassThid").value;
 var isDel= document.getElementById("isDel").value;
 
 var param='';
 if((homeSiteNewsClassBid!=-1)&&(homeSiteNewsClassSid==-1)){
    param='&homeSiteNewsClassid='+homeSiteNewsClassBid;
 }
 if((homeSiteNewsClassBid!=-1)&&(homeSiteNewsClassSid!=-1)&&(homeSiteNewsClassThid==-1)){
    param='&homeSiteNewsClassid='+homeSiteNewsClassSid;
 }
 if((homeSiteNewsClassBid!=-1)&&(homeSiteNewsClassSid!=-1)&&(homeSiteNewsClassThid!=-1)){
    param='&homeSiteNewsClassid='+homeSiteNewsClassThid;
 }
 
 if(isDel==-1){
 isDel = '0';
 }
 
 window.location=encodeURI(url+param2+param+'&isDel='+isDel);
 }
</script>
<script type="text/javascript">

function  checkboxIsSelected2(dovalue){

   var param = '';
   var flag = 0;
   if(document.forms['theForm1'].checkboxparam.length!=null)
   {
        for (var i=0;i<document.forms['theForm1'].checkboxparam.length;i++) 
		   {
		        var e=document.forms['theForm1'].checkboxparam[i];
		        if(e.checked){
					param += '&checkboxparam=' + e.value;
					flag = 1;
				}
		   }
		   if(flag==1)
		   {
		      var toPageLink=document.getElementById('toPageLinkstr').value;
		   
		        //推荐
		        if(dovalue==1)
		        window.location=encodeURI(toPageLink+'&doit=tuijian' + param);
		        //取消推荐
		        if(dovalue==2)
		        window.location =encodeURI(toPageLink+'&doit=deltuijian' + param);
		        //审核
		        if(dovalue==3)
		        window.location=encodeURI(toPageLink+'&doit=audite' + param);
		        //取消审核
		        if(dovalue==4)
		        window.location =encodeURI(toPageLink+'&doit=delaudite' + param);
		        //删除
		        if(dovalue==5)
		        window.location=encodeURI(toPageLink+'&doit=isDel' + param);
		        //取消删除
		        if(dovalue==6)
		        window.location =encodeURI(toPageLink+'&doit=delisDel' + param);
		        //彻底删除
		        if(dovalue==7)
		        window.location =encodeURI(toPageLink+'&doit=readlyisDel' + param);
		        //头条
		        if(dovalue==8)
		        window.location =encodeURI(toPageLink+'&doit=toptitle' + param);
		        //取消头条
		        if(dovalue==9)
		        window.location =encodeURI(toPageLink+'&doit=deltoptitle' + param);
		        
		         //热点
		        if(dovalue==10)
		        window.location =encodeURI(toPageLink+'&doit=hotspot' + param);
		        //取消热点
		        if(dovalue==11)
		        window.location =encodeURI(toPageLink+'&doit=delhotspot' + param);
		        
		   }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
   
   //只选择了一项
   else if(document.forms['theForm1'].checkboxparam!=null)
   {
       var e=document.forms['theForm1'].checkboxparam;
        if(e.checked)
        {
					param += '&checkboxparam=' + e.value;
					flag = 1;
	    }
	    
	      if(flag==1)
		   {
		   
		       var toPageLink=document.getElementById('toPageLinkstr').value;
		   
		        //推荐
		        if(dovalue==1)
		        window.location = encodeURI(toPageLink+'&doit=tuijian' + param);
		        //取消推荐
		        if(dovalue==2)
		        window.location = encodeURI(toPageLink+'&doit=deltuijian' + param);
		        //审核
		        if(dovalue==3)
		        window.location=encodeURI(toPageLink+'&doit=audite' + param);
		        //取消审核
		        if(dovalue==4)
		        window.location =encodeURI(toPageLink+'&doit=delaudite' + param);
		        
		         //删除
		        if(dovalue==5)
		        window.location=encodeURI(toPageLink+'&doit=isDel' + param);
		        //取消删除
		        if(dovalue==6)
		        window.location =encodeURI(toPageLink+'&doit=delisDel' + param);
		        
		        //彻底删除
		        if(dovalue==7)
		        window.location =encodeURI(toPageLink+'&doit=readlyisDel' + param);
		        
		       //头条
		        if(dovalue==8)
		        window.location =encodeURI(toPageLink+'&doit=toptitle' + param);
		        //取消头条
		        if(dovalue==9)
		        window.location =encodeURI(toPageLink+'&doit=deltoptitle' + param);
		        
		        //热点
		        if(dovalue==10)
		        window.location =encodeURI(toPageLink+'&doit=hotspot' + param);
		        //取消热点
		        if(dovalue==11)
		        window.location =encodeURI(toPageLink+'&doit=delhotspot' + param);

           }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
}


</script>
  </head>
  
  <body>
  <logic:present name="del">
  <bean:write name="del" filter="false"/>
  </logic:present>
  <logic:present name="update">
  <bean:write name="update" filter="false"/>
  </logic:present>
  <logic:present name="succe">
  <bean:write name="succe" filter="false"/>
  </logic:present>
   <div class="vb_wid"><c:if test="${param['isDel'] !=  '1'}">【资讯管理】 </c:if><c:if test="${param['isDel']=='1'}">【回收站】</c:if></div>
   
   <div class="fb_search">
   <h1>资讯搜索</h1>
   <div class="fb_s_a1">搜索内容：
    <html:form action="/admin/homeSite/homeSiteNews.do?action=list" method="post">
     <label>
       <select name="titleStr" size="1">
       <option value="-2">--查询类型--</option>
       <option value="1">--资讯标题--</option>
       <option value="2">--资讯内容--</option>
       <option value="3">--发布日期--</option>
     </select>-<input type="text" name="title" size="5"/>
     
      
        类别
    <html:select property="homeSiteNewsClassBid" onchange="getChild1(this,'${bmClassTypeId}');">
    <html:option value="-1" >请选择</html:option>
    <logic:present name="listSiteNewsBClass">
    <logic:iterate id="item" name="listSiteNewsBClass">
    <option value="${item.id }" <c:if test="${homeSiteNewsClassBid==item.id }">selected</c:if>>${item.names}</option>
    </logic:iterate>
    </logic:present>
    </html:select>-
    <html:select property="homeSiteNewsClassSid" onchange="loadThirdSelectList(this,'${bmClassTypeId}');">
    <html:option value="-1" >请选择</html:option>
    <logic:present name="mapsecond">
    <logic:iterate id="item" name="mapsecond">
    <option value="${item.key }" <c:if test="${homeSiteNewsClassSid==item.key }">selected</c:if>>${item.value}</option>
    </logic:iterate>
    </logic:present>
     </html:select>-
    <html:select property="homeSiteNewsClassThid">
    <html:option value="-1" >请选择</html:option>
    <logic:present name="mapthird">
    <logic:iterate id="item" name="mapthird">
    <option value="${item.key }" <c:if test="${homeSiteNewsClassThid==item.key }">selected</c:if>>${item.value}</option>
    </logic:iterate>
    </logic:present>
    </html:select> 
    
    
        回收站
    <select name="isDel" id="isDel" size="1">
    <option value="-1" >请选择</option>
    <option value="1" >是</option>
    <option value="0" >否</option>
    </select>
      </label>
  <label>
    <html:button onclick="javascript:search();void 0;" property="button" value="提交"/>
     </label>
     </html:form>
     
        </div>
   <div class="fb_s_a2">注：<font color="red">日期查询时，年月日格式最好为(2008-10-31,2008-12-12)。</font><br/>注：<font color="red">&nbsp;★ 为是， ☆ 为否。</font></div>
</div>
<div class="fb_nr">
 
      <logic:present name="HomeSiteNewsList">
	<logic:notEmpty name="HomeSiteNewsList">
 
  	<form action="/admin/homeSite/homeSiteNews.do?action=delete&page=${curPage}&pageSize=${pageSize}" name="theForm1" method="post" id="theForm1">
  	
  	<input type="hidden" id="toPageLinkstr"  value="/admin/homeSite/homeSiteNews.do?action=dealWithAll&page=${curPage}&pageSize=${pageSize}&bkprovId=${param['provId']}&bkcityId=${param['cityId']}&bktitle=${title}&bkhomeSiteNewsClassid=${param['homeSiteNewsClassid']}&bkisDel=${param['isDel']}&bkcontent=${content}&bkcreateDatetimeStr=${createDatetimeStr}" />
  <table width="100%" border="1" cellspacing="1" style="font-size:12px">
  <c:if test="${param['isDel']!= '1'}">
    <tr class="lb">
      <td width="4%">选择</td>
      <td width="4%">ID</td>
      <td width="20%">资讯标题</td>
      <td width="8%">资讯分类</td>
      <td width="5%">点击</td>
      <td width="4%">热点</td>
      <td width="4%">推荐</td>
      <td width="4%">审核</td>
      <td width="4%">修改</td>
      <td width="14%">整理时间</td>
    </tr>

	<logic:iterate id="list" name="HomeSiteNewsList">
      <tr class="lb1">
      
        <td align="center"><label>
          <input type="checkbox" id="checkboxparam" name="checkboxparam" value="${list.id}" />
        </label></td>
        
        <td align="center"><font color="red"><b>${list.id}</b></font></td>
        
         <td align="center"><c:set var="titlestr3" value="${list.title}"></c:set>
          <a  title="${list.title}">${fn:substring(titlestr3,0,14)}</a></td>
        
        <td align="center">        
        <c:if test="${homeSiteNewsClassid==0}">
            <c:if test="${list.homeSiteNewsBClass!=null}">${list.homeSiteNewsBClass.names}</c:if>
            <c:if test="${list.homeSiteNewsSClass!=null}">${list.homeSiteNewsSClass.names}</c:if>
            <c:if test="${list.homeSiteNewsThClass!=null}">${list.homeSiteNewsThClass.names}</c:if>
        </c:if>
        
        <c:if test="${homeSiteNewsClassid!=0}">
        <c:if test="${homeSiteNewsClassStr!=null}">
        ${homeSiteNewsClassStr.names} </c:if>
        </c:if></td>

        <td align="center">${list.hits}</td>
          
        <td align="center">
        <c:if test="${list.hotspot==1}">★</c:if>
        <c:if test="${list.hotspot==0}">☆</c:if>
        </td>
          
        <td align="center">
        <c:if test="${list.iscommend==1}">★</c:if>
        <c:if test="${list.iscommend==0}">☆</c:if>
       </td>
        <td align="center">
        <c:if test="${list.audite==1}">★</c:if>
        <c:if test="${list.audite==0}">☆</c:if>
       </td>
        <td align="center"><html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=toupdate&id=${list.id }&page=${curPage}&pageSize=${pageSize}&bkprovId=${param['provId']}&bkcityId=${param['cityId']}&bktitle=${title}&bkhomeSiteNewsClassid=${param['homeSiteNewsClassid']}&bkisDel=${param['isDel']}&bkcontent=${content}&bkcreateDatetimeStr=${createDatetimeStr}'); void 0;"><img src="images/edititem.gif" border=0 /></html:link></td>
        <td align="center">
        <c:set var="createDatetime" value="${list.createDatetime}"></c:set>
          ${fn:substring(createDatetime,0,19)}</td>
      </tr>
      
      	</logic:iterate>
</c:if>

  <c:if test="${param['isDel']=='1'}">
    <tr class="lb">
      <td width="6%">选择</td>
      <td width="20%">资讯标题</td>
      <td width="8%">资讯分类</td>
      <td width="14%">整理时间</td>
    </tr>


	<logic:iterate id="list" name="HomeSiteNewsList">
      <tr class="lb1">
      
        <td align="center"><label>
          <input type="checkbox" id="checkboxparam" name="checkboxparam" value="${list.id}" />
        </label></td>
                 <td align="center"><c:set var="titlestr3" value="${list.title}"></c:set>
          ${fn:substring(titlestr3,0,14)}</td>
        
        <td>
        <span></span>
        <c:if test="${homeSiteNewsClassid==0}">
            <c:if test="${list.homeSiteNewsBClass!=null}">[${list.homeSiteNewsBClass.names}]</c:if>
            <c:if test="${list.homeSiteNewsSClass!=null}">[${list.homeSiteNewsSClass.names}]</c:if>
            <c:if test="${list.homeSiteNewsThClass!=null}">[${list.homeSiteNewsThClass.names}]</c:if>
        </c:if>
        
        <c:if test="${homeSiteNewsClassid!=0}">
        <c:if test="${homeSiteNewsClassStr!=null}">
        ${fn:substring(homeSiteNewsClassStr.names,0,5)} </c:if>
        </c:if></td>

        <td>
        <c:set var="createDatetime" value="${list.createDatetime}"></c:set>
          ${fn:substring(createDatetime,0,19)}</td>
      </tr>
      	</logic:iterate>

</c:if>

		<tr>
	<td colspan=13>
	<table width="100%" border="1" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="4"></td>
			</tr>
			<logic:present name="HomeSiteNewsList">
				<tr>
					<td>
						<html:button onclick="selectAll(1);" property="button" value="全选" />
						&nbsp;
						<html:button onclick="selectAll(2);" property="button" value="反选" />
						&nbsp;
						<html:button onclick="selectAll(3);" property="button" value="不选" />
						<c:if test="${param['isDel'] !=  '1'}">
						&nbsp;		
				<html:button onclick="javascript:checkboxIsSelected2(1);void 0" property="button" value="推荐"/>
				<html:button onclick="javascript:checkboxIsSelected2(2);void 0" property="button" value="取消推荐"/>
				<html:button onclick="javascript:checkboxIsSelected2(3);void 0" property="button" value="审核"/>
				<html:button onclick="javascript:checkboxIsSelected2(4);void 0" property="button" value="取消审核"/>
				<html:button onclick="javascript:checkboxIsSelected2(8);void 0" property="button" value="头条"/>
				<html:button onclick="javascript:checkboxIsSelected2(9);void 0" property="button" value="取消头条"/>
				<html:button onclick="javascript:checkboxIsSelected2(10);void 0" property="button" value="热点"/>
				<html:button onclick="javascript:checkboxIsSelected2(11);void 0" property="button" value="取消热点"/>
				
				<html:button onclick="javascript:checkboxIsSelected2(5);void 0" property="button" value="放入回收站"/>
				</c:if>
				
				<c:if test="${param['isDel'] =='1'}">
				<html:button onclick="javascript:checkboxIsSelected2(6);void 0" property="button" value="恢复"/>
				<html:button onclick="javascript:checkboxIsSelected2(7);void 0" property="button" value="彻底删除"/>
				</c:if>
				
					</td>
				</tr>
			</logic:present>
		</table>
	</td>
	</tr>
	
		
	<tr>
	<td colspan=12>
	      <table width="100%" border="0" cellspacing="1" style="font-size:12px">
            <tr>
               <td colspan="8">
              
                       有 <span class="red1">${recordNum}</span>条记录。当前第${curPage}页,共${allPage}页
       	<logic:notEmpty name="recordNum">
	<c:if test="${recordNum>0}">
		<c:if test="${curPage>1}">
		     <html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=backPage&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >上一页</html:link>
		</c:if>
		<%--  页码循环 --%>
		<c:if test="${(curPage>=1)&&(curPage<=7)&&(allPage<8)}">
		<c:forEach begin="${1}" end="${allPage}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>
		<c:if test="${(curPage>=1)&&(curPage<=7)&&(allPage>8)}">
		<c:forEach begin="${1}" end="${8}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>
		<c:if test="${curPage>7&&(allPage>(curPage+4))}">
		 <html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&page=${1}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >1</html:link>....
		<c:forEach begin="${(curPage-3)}" end="${(curPage+4)}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>
		<c:if test="${curPage>7&&(allPage<=(curPage+4))}">
         <html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&page=${1}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >1</html:link>....
		<c:forEach begin="${(curPage-3)}" end="${allPage}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>

			<c:if test="${curPage<allPage}">
			<html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=nextPage&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >下一页</html:link>
			</c:if>
            <c:if test="${(allPage>1)&&(curPage<allPage)}">
<html:link href="javascript:window.location=encodeURI('/admin/homeSite/homeSiteNews.do?action=list&page=${allPage}&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}'); void 0;" >尾页</html:link>   
			</c:if>
	</c:if>
	</logic:notEmpty>        
               

                到
                 <form id="searchForm123" name="searchForm123">
                 	<input type="hidden" id="toPageLinkpage"  value="/admin/homeSite/homeSiteNews.do?action=list&pageSize=${pageSize}&title=${title}&homeSiteNewsClassid=${homeSiteNewsClassid}&isDel=${param['isDel']}&content=${content}&createDatetimeStr=${createDatetimeStr}" />
               	  <input id="toPage"  name="toPage" type="text" size="2"/>
    页&nbsp;
    
      <input type="button"  value=" " style="background-image: url('/admin/images/ck.gif');border:0px;width:58px;"  title="查看"  onclick="return topage('toPage');"/>
    
    
     </form>    
               </td>
                              
                              
            </tr>
           </table>
	</td>
	</tr>
    </table>
    
    </form>
    
    	</logic:notEmpty>
	</logic:present>
	      <logic:present name="HomeSiteNewsList">
<logic:empty name="HomeSiteNewsList">
<font color="red">对不起！！！，没有搜索到你想要的结果！！！</font>
</logic:empty>
	</logic:present>
    

   <h1><img src="image/qqddc_shop1.gif" width="720" height="8" /></h1>
</div>
	

  </body>
</html:html>










